package com.itheima.day816.demo06;

public abstract class HaveMeal {
    public void eat(){
        System.out.println("取餐盘...");
        takeFood();
        System.out.println("扫码结账...");
    }
    public abstract void takeFood();
}
class XiaoLong extends HaveMeal{
    public void takeFood() {
        System.out.println("鱼香肉丝");
        System.out.println("酸菜鱼");
        System.out.println("宫保鸡丁");
    }
}
class XiaoMing extends HaveMeal{
    public void takeFood() {
        System.out.println("铁板鱿鱼");
        System.out.println("清蒸鲈鱼");
        System.out.println("大肠刺身");
    }
}
